﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddUser.aspx.cs" Inherits="SEO_Server.Pages.User.AddUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="pelMain" />
    <ext:Panel ID="pelMain" runat="server" EnableBackgroundColor="true" BodyPadding="3px"
        EnableLargeHeader="true" AutoHeight="true" Title="Panel" AutoScroll="false" ShowBorder="false"
        ShowHeader="false">
        <!--工具栏-->
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnClose" runat="server" Text="關閉" Icon="Cancel" OnClick="btnClose_Click" />
                    <ext:Button ID="btnEnter" runat="server" Text="確定" Icon="Accept" ValidateForms="mainFrame"
                        OnClick="btnEnter_Click" ConfirmText="您確定添加該帳號嗎?" />
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Form EnableBackgroundColor="true" ShowHeader="false" BodyPadding="5px" ID="mainFrame"
                runat="server" LabelWidth="50px" AutoHeight="true" ShowBorder="false">
                <Rows>
                    <ext:FormRow ID="FormRow1" runat="server">
                        <Items>
                            <ext:TextBox ID="tbxUserAccount" runat="server" Label="帳號" Text="" MaxLength="50"
                                MaxLengthMessage="最多只能輸入50個字!" Required="true" ShowRedStar="true" Regex="^\w+@(\w+\.)+[a-z]{2,3}$"
                                RegexMessage="帳號格式不正確,必須為郵件地址!">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow2" runat="server">
                        <Items>
                            <ext:TextBox ID="tbxUserQQ" runat="server" Label="QQ號" Text="" MaxLength="50" MaxLengthMessage="最多只能輸入50個數字!"
                                Regex="^[0-9]*$" RegexMessage="只能輸入數字!">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                </Rows>
            </ext:Form>
        </Items>
    </ext:Panel>
    </form>
</body>
</html>
